package com.jnc.core.web.page;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: jjn
 * @Date: 2018/8/12
 * @Description:
 */
public class TableResult implements Serializable {

    private static final long serialVersionUID = 1L;

    public TableResult() {
    }

    public TableResult(Long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    /**
     * 状态码 0：正常；
     */
    private Integer code;
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 列表数据
     */
    private List<?> rows;

    public Integer getCode() {
        return code;
    }

    public TableResult setCode(Integer code) {
        this.code = code;
        return this;
    }

    public Long getTotal() {
        return total;
    }

    public TableResult setTotal(Long total) {
        this.total = total;
        return this;
    }

    public List<?> getRows() {
        return rows;
    }

    public TableResult setRows(List<?> rows) {
        this.rows = rows;
        return this;
    }
}
